import pygame,os,random
pygame.mixer.init()
class sound:
    def __init__(self,file):
        self.soundFile = pygame.mixer.Sound(file)
    def play(self):
        self.soundFile.play()
class music:
    def __init__(self):
        r = random
        r.seed()
        self.music = []
        for file in os.listdir("./Music/"):
            self.music.append(file)
        self.current = self.music[0]
        print self.current
        pygame.mixer.music.load("./Music/"+self.current)
        pygame.mixer.music.play()
        for file in os.listdir("./Music/"):
            pygame.mixer.music.queue("./Music/"+file)
#music()
